﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A2B RID: 2603
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LeaveRaidCsReq : IMessage<LeaveRaidCsReq>, IMessage, IEquatable<LeaveRaidCsReq>, IDeepCloneable<LeaveRaidCsReq>, IBufferMessage
	{
		// Token: 0x170020DE RID: 8414
		// (get) Token: 0x0600748E RID: 29838 RVA: 0x001374A8 File Offset: 0x001356A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LeaveRaidCsReq> Parser
		{
			get
			{
				return LeaveRaidCsReq._parser;
			}
		}

		// Token: 0x170020DF RID: 8415
		// (get) Token: 0x0600748F RID: 29839 RVA: 0x001374AF File Offset: 0x001356AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LeaveRaidCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170020E0 RID: 8416
		// (get) Token: 0x06007490 RID: 29840 RVA: 0x001374C1 File Offset: 0x001356C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LeaveRaidCsReq.Descriptor;
			}
		}

		// Token: 0x06007491 RID: 29841 RVA: 0x001374C8 File Offset: 0x001356C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveRaidCsReq()
		{
		}

		// Token: 0x06007492 RID: 29842 RVA: 0x001374D0 File Offset: 0x001356D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveRaidCsReq(LeaveRaidCsReq other) : this()
		{
			this.isSaveData_ = other.isSaveData_;
			this.raidId_ = other.raidId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007493 RID: 29843 RVA: 0x00137501 File Offset: 0x00135701
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveRaidCsReq Clone()
		{
			return new LeaveRaidCsReq(this);
		}

		// Token: 0x170020E1 RID: 8417
		// (get) Token: 0x06007494 RID: 29844 RVA: 0x00137509 File Offset: 0x00135709
		// (set) Token: 0x06007495 RID: 29845 RVA: 0x00137511 File Offset: 0x00135711
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSaveData
		{
			get
			{
				return this.isSaveData_;
			}
			set
			{
				this.isSaveData_ = value;
			}
		}

		// Token: 0x170020E2 RID: 8418
		// (get) Token: 0x06007496 RID: 29846 RVA: 0x0013751A File Offset: 0x0013571A
		// (set) Token: 0x06007497 RID: 29847 RVA: 0x00137522 File Offset: 0x00135722
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RaidId
		{
			get
			{
				return this.raidId_;
			}
			set
			{
				this.raidId_ = value;
			}
		}

		// Token: 0x06007498 RID: 29848 RVA: 0x0013752B File Offset: 0x0013572B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LeaveRaidCsReq);
		}

		// Token: 0x06007499 RID: 29849 RVA: 0x00137539 File Offset: 0x00135739
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LeaveRaidCsReq other)
		{
			return other != null && (other == this || (this.IsSaveData == other.IsSaveData && this.RaidId == other.RaidId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600749A RID: 29850 RVA: 0x00137578 File Offset: 0x00135778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsSaveData)
			{
				num ^= this.IsSaveData.GetHashCode();
			}
			if (this.RaidId != 0U)
			{
				num ^= this.RaidId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600749B RID: 29851 RVA: 0x001375D0 File Offset: 0x001357D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600749C RID: 29852 RVA: 0x001375D8 File Offset: 0x001357D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600749D RID: 29853 RVA: 0x001375E4 File Offset: 0x001357E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsSaveData)
			{
				output.WriteRawTag(48);
				output.WriteBool(this.IsSaveData);
			}
			if (this.RaidId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.RaidId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600749E RID: 29854 RVA: 0x00137640 File Offset: 0x00135840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsSaveData)
			{
				num += 2;
			}
			if (this.RaidId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RaidId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600749F RID: 29855 RVA: 0x0013768C File Offset: 0x0013588C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LeaveRaidCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsSaveData)
			{
				this.IsSaveData = other.IsSaveData;
			}
			if (other.RaidId != 0U)
			{
				this.RaidId = other.RaidId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060074A0 RID: 29856 RVA: 0x001376DC File Offset: 0x001358DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060074A1 RID: 29857 RVA: 0x001376E8 File Offset: 0x001358E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RaidId = input.ReadUInt32();
					}
				}
				else
				{
					this.IsSaveData = input.ReadBool();
				}
			}
		}

		// Token: 0x04002C7A RID: 11386
		private static readonly MessageParser<LeaveRaidCsReq> _parser = new MessageParser<LeaveRaidCsReq>(() => new LeaveRaidCsReq());

		// Token: 0x04002C7B RID: 11387
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002C7C RID: 11388
		public const int IsSaveDataFieldNumber = 6;

		// Token: 0x04002C7D RID: 11389
		private bool isSaveData_;

		// Token: 0x04002C7E RID: 11390
		public const int RaidIdFieldNumber = 11;

		// Token: 0x04002C7F RID: 11391
		private uint raidId_;
	}
}
